/********************************************************************************
 * DateFormat.java
 *
 * Created by Jigar Mistry
 * Last modified Date: Sep 4, 2008 9:06:36 AM by Jigar Mistry
 * Version : 0.1
 * Copyright (c) 2008 - 2009 cyberThink Infotech Pvt. Ltd., All rights reserved.
 ********************************************************************************/

package com.printeverywhere.dto;

import java.util.HashSet;
import java.util.Set;

/**
 * DateFormat entity.
 * 
 * @author MyEclipse Persistence Tools
 */

public class DateFormat implements java.io.Serializable {

	// Fields

	/** The Constant serialVersionUID. */
	private static final long serialVersionUID = 1L;
	
	/** The id. */
	private int id;
	
	/** The format. */
	private String format;
	
	/** The sample. */
	private String sample;
	
	/** The users. */
	private Set<User> users = new HashSet<User>(0);

	// Constructors

	/**
	 * default constructor.
	 */
	public DateFormat() {
	}

	/**
	 * minimal constructor.
	 * 
	 * @param format the format
	 * @param sample the sample
	 */
	public DateFormat(String format, String sample) {
		this.format = format;
		this.sample = sample;
	}

	/**
	 * full constructor.
	 * 
	 * @param format the format
	 * @param sample the sample
	 * @param users the users
	 */
	public DateFormat(String format, String sample, Set<User> users) {
		this.format = format;
		this.sample = sample;
		this.users = users;
	}

	// Property accessors

	/**
	 * Gets the id.
	 * 
	 * @return the id
	 */
	public int getId() {
		return this.id;
	}

	/**
	 * Sets the id.
	 * 
	 * @param id the new id
	 */
	public void setId(int id) {
		this.id = id;
	}

	/**
	 * Gets the format.
	 * 
	 * @return the format
	 */
	public String getFormat() {
		return this.format;
	}

	/**
	 * Sets the format.
	 * 
	 * @param format the new format
	 */
	public void setFormat(String format) {
		this.format = format;
	}

	/**
	 * Gets the sample.
	 * 
	 * @return the sample
	 */
	public String getSample() {
		return this.sample;
	}

	/**
	 * Sets the sample.
	 * 
	 * @param sample the new sample
	 */
	public void setSample(String sample) {
		this.sample = sample;
	}

	/**
	 * Gets the users.
	 * 
	 * @return the users
	 */
	public Set<User> getUsers() {
		return this.users;
	}

	/**
	 * Sets the users.
	 * 
	 * @param users the new users
	 */
	public void setUsers(Set<User> users) {
		this.users = users;
	}
}